package com.zysstudy.stream;

import java.util.List;

/**
 * @author zhaoyoushui
 * @date 2025/8/30 9:26
 * @Description
 * @Copyright 南京优通信息科技股份有限公司
 */
public class Order {
    private Long id;

    private Long userId;

    private List<OrderItem> orderItems;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", orderItems=" + orderItems +
                '}';
    }
}
